// const [isDis,setIsDis] = useState(true)
export const testColumns = [
  {
    dataField: 'zy',
    caption: '摘要',
    alignment: 'left',
    // width: 130,
    dataTypeCustom: 'zh-string',
    minWidth: 500,
  },
  {
    dataField: 'intPd',
    caption: '频度',
    alignment: 'right',
    dataType: 'text',
    width: 150,
  },
  {
    dataField: 'realJfje',
    caption: '借方发生额',
    alignment: 'right',
    width: 230,
    dataTypeCustom: 'money-number',
    editorOptions: {
      format: { type: 'decimal', precision: 2 },
    },
  },
  {
    dataField: 'strJfbz',
    caption: '借方比重(%)',
    alignment: 'right',
    dataType: 'number',
    width: 100,
    customizeText: (a: any) =>
      ` ${
        Number(Number(a.value).toFixed(4)) === 0
          ? ''
          : Number(a.value).toFixed(2).includes('0.00')
          ? ''
          : Number(a.value).toFixed(2)
      }`,
    dataTypeCustom: 'money-number',
    editorOptions: {
      format: { type: 'decimal', precision: 4 },
    },
    // width: 130,
  },
  {
    dataField: 'realDfje',
    caption: '贷方发生额',
    alignment: 'right',
    width: 230,
    dataTypeCustom: 'money-number',
  },
  {
    dataField: 'strDfbz',
    caption: '贷方比重(%)',
    alignment: 'right',
    dataTypeCustom: 'money-number',
    width: 100,
    customizeText: (a: any) =>
      ` ${
        Number(Number(a.value).toFixed(4)) === 0
          ? ''
          : Number(a.value).toFixed(2).includes('0.00')
          ? ''
          : Number(a.value).toFixed(2)
      }`,
    // width: 130,
  },
];

export const testColumnsZY = [
  {
    dataField: 'PZRQ',
    caption: '凭证日期',
    alignment: 'left',
    width: 130,
  },
  {
    dataField: 'PZBH',
    caption: '编号',
    alignment: 'left',
    width: 150,
  },
  {
    dataField: 'PZLX',
    caption: '类型',
    alignment: 'left',
    dataTypeCustom: 'zh-string',
    width: 150,
  },
  {
    dataField: 'YSKMBH',
    caption: '科目编号',
    alignment: 'left',
    width: 130,
  },

  {
    dataField: 'KMMC',
    caption: '科目名称',
    alignment: 'left',
    dataTypeCustom: 'zh-string',
    // width: 130,
  },
  {
    dataField: 'ZY',
    caption: '摘要',
    alignment: 'left',
    dataTypeCustom: 'zh-string',
    minWidth: 120,
    // width: 130,
  },
  {
    dataField: 'JFJE',
    caption: '借方金额',
    alignment: 'right',
    width: 130,
    dataTypeCustom: 'money-number',
  },
  {
    dataField: 'DFJE',
    caption: '贷方金额',
    alignment: 'right',
    width: 130,
    dataTypeCustom: 'money-number',
  },
];
